package com.rockcent.service;

import com.rockcent.common.common.PageResult;
import com.rockcent.mall.lib.domain.MallMemberFundFlow;
import com.rockcent.mall.lib.domain.MallMemberRechargeFlow;
import com.rockcent.mall.lib.dto.MallMemberFundFlowDto;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by zhangjh on 2017/3/9.
 */
public interface MallMemberFundFlowSrv {


    String RESOURCE_PATH_MALL_MEMBER_FUND_DETAIL_DYNAMIC = "templates/resource_path_mall_member_fund_detail_dynamic.xls";

    String SUFFIX_XLSX = ".xls";

    /**
     *
     * @param dto
     * @param page
     * @return
     */
    PageResult<MallMemberFundFlowDto> findMallMemberFundFlowPage(MallMemberFundFlowDto dto, PageResult page);

    /**
     *
     * @param request
     * @param response
     * @param dto
     * @throws IOException
     */
    void export(HttpServletRequest request, HttpServletResponse response, MallMemberFundFlowDto dto) throws IOException;

    /**
     *
     * @param fundFlow
     */
    MallMemberFundFlow save(MallMemberFundFlow fundFlow);
}
